﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Polls {
	[Serializable]
	public class OpenQuestion : Text {
		bool      obligatory = false;
		ArrayList answers    = new ArrayList();
		
		public bool Obligatory {
			get {
				return obligatory;
			}
			set {
				obligatory = value;
			}
		}

		[XmlArrayItem(typeof(string))]
		public ArrayList Answers {
			get {
				return answers;
			}
			set {
				Answers = value;
			}
		}
		
		public void AddAnswer(string str) {
			Answers.Add(str);
		}
	}
}
